﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DesignPatterns.ItteratorPatterns
{
    class ItteratorPattern
    {
        static void Main(string[] args)
        {
        }
    }
    /// <summary>
    /// 迭代器抽象类
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IIterator<T> {
        T next();
        bool hasNext();
        bool remove();
    }
    public class ConcreteIterator<T> : IIterator<T>
    {
        public bool hasNext()
        {
            throw new NotImplementedException();
        }

        public T next()
        {
            throw new NotImplementedException();
        }

        public bool remove()
        {
            throw new NotImplementedException();
        }
    }
}
